---
layout: "default"
title: "Operator: prefix ~"
description: "Swift documentation for the 'prefix ~' operator."
root: "/v2.2"
---

<code class="language-swift">prefix operator prefix ~ {
    associativity 
    precedence 
}</code>

<h3>Declarations</h3>

<div class="declaration" id="func-tilde_-int">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-int">prefix func ~(<wbr>_: Int)</a>
        
<div class="comment collapse" id="comment-func-tilde_-int"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: Int) -&gt; Int</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-tilde_-int8">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-int8">prefix func ~(<wbr>_: Int8)</a>
        
<div class="comment collapse" id="comment-func-tilde_-int8"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: Int8) -&gt; Int8</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-tilde_-int16">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-int16">prefix func ~(<wbr>_: Int16)</a>
        
<div class="comment collapse" id="comment-func-tilde_-int16"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: Int16) -&gt; Int16</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-tilde_-int32">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-int32">prefix func ~(<wbr>_: Int32)</a>
        
<div class="comment collapse" id="comment-func-tilde_-int32"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: Int32) -&gt; Int32</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-tilde_-int64">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-int64">prefix func ~(<wbr>_: Int64)</a>
        
<div class="comment collapse" id="comment-func-tilde_-int64"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: Int64) -&gt; Int64</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-tilde_-uint">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-uint">prefix func ~(<wbr>_: UInt)</a>
        
<div class="comment collapse" id="comment-func-tilde_-uint"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: UInt) -&gt; UInt</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-tilde_-uint8">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-uint8">prefix func ~(<wbr>_: UInt8)</a>
        
<div class="comment collapse" id="comment-func-tilde_-uint8"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: UInt8) -&gt; UInt8</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-tilde_-uint16">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-uint16">prefix func ~(<wbr>_: UInt16)</a>
        
<div class="comment collapse" id="comment-func-tilde_-uint16"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: UInt16) -&gt; UInt16</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-tilde_-uint32">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-uint32">prefix func ~(<wbr>_: UInt32)</a>
        
<div class="comment collapse" id="comment-func-tilde_-uint32"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: UInt32) -&gt; UInt32</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-tilde_-uint64">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tilde_-uint64">prefix func ~(<wbr>_: UInt64)</a>
        
<div class="comment collapse" id="comment-func-tilde_-uint64"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ~(rhs: UInt64) -&gt; UInt64</code>
    
    
</div></div>
</div>
